<!doctype html>
<html lang="zh-cn" dir="ltr">
 <head> 
  <meta charset="UTF-8"> 
  <title>投放卡券 - 微信公众平台开发者文档</title> 
  <meta name="generator" content="MediaWiki 1.17.0"> 
  <link rel="shortcut icon" href="../static/assets/b6e57135e9c7167976dba80b3b09b546.jpg"> 
  <link rel="search" type="application/opensearchdescription+xml" href="../7/62453c80507e836458b441eae4358bdf.html" title="微信公众平台开发者文档 (zh-cn)"> 
  <link rel="alternate" type="application/atom+xml" title="微信公众平台开发者文档的Atom订阅" href="../0/594277f21545345653eb965322ac4b04.html"> 
  <link rel="stylesheet" href="../static/02da6b362196e50cd396d4117c7fa3ea.css"> 
  <meta name="keywords" content="微信公众平台开发者文档,微信小店接口,设备功能接口,Weixin JS接口,分组管理接口">
  <meta name="description" content="公众平台是为微信用户提供服务的平台，而公众平台开发接口则是提供服务的基础，开发者在公众平台网站中创建公众号、获取接口权限后，可以通过阅读本接口文档来帮助开发。">
  <meta name="ResourceLoaderDynamicStyles" content=""> 
  <!--[if lt IE 7]><style type="text/css">body{behavior:url("/wiki/skins/vector/csshover.min.htc")}</style><![endif]-->
 </head> 
 <body class="mediawiki ltr ns-0 ns-subject page-投放卡券 skin-vector"> 
  <!--网站头部--> 
  <script type="text/javascript" src="../static/021402488e80774f4bae632d50abd818.js"></script> 
  <script>
	function parseURL(){
		var res = {}, search = location.search;
		if (search.indexOf("?") != 0){
			return res;
		}
		search = search.substr(1).split("&");
		for (var i = 0; i < search.length; ++i){
			var 
				item = search[i],
				idx = item.indexOf("="),
				k = item.substr(0, idx),
				v = item.substr(idx+1);
			res[k] = v;
		}
		return res;
	}

	var params = parseURL();
	$(function(){
		$(".portal").each(function(){
			var portal = $(this), as = portal.find('a');

			as.each(function(){
				var a = $(this), title = a.html();

				if (decodeURIComponent(title) == decodeURIComponent(params['title'])){
					portal.addClass("active").find(".body").show();
					a.addClass("selected");
				}
			});
		})
	});
</script> 
  <div class="headWrap"> 
   <div class="header" id="header"> 
    <div class="inner"> 
     <a class="logo" href="../home/index.html"><img src="../static/assets/dc5de672083b2ec495408b00b96c9aab.png" alt="微信公众平台开发者文档"></a> 
    </div> 
   </div> 
  </div>  
  <script type="text/javascript" src="../static/2ef2bdf6ac1839ee639cb15463231282.js"></script> 
  <!--[if IE 6]>
<style type="text/css">
html{background-image:url(about:blank);background-attachment:fixed;}
#content{overflow-x:hidden;}
.bottomnav{position:absolute;top:expression(eval(document.documentElement.scrollTop+document.documentElement.clientHeight-30));}
</style>
<![endif]--> 
  <!--网站头部--> 
  <div id="mw-page-base" class="noprint"></div> 
  <div id="mw-head-base" class="noprint"></div> 
  <div class="mainwrapper"> 
   <div class="inner"> 
    <!-- panel --> 
    <div id="mw-panel" class="noprint"> 
     <!-- 
						<div id="p-logo"><a style="background-image: url(/wiki/skins/common/images/logo.jpg);" href="/wiki/index.php?title=%E9%A6%96%E9%A1%B5"  title="访问首页"></a></div>
					
					<form class="searchform">
						<input type="text"   name="search" placeholder="搜索关键字 [alt-s]" accesskey="s" class="searchform_text"/>
						<input type="submit" name="fulltext" value="搜索" title="搜索该文字的页面" class="searchform_btn"/>
					</form>
					 --> 
     <!-- 开始前必读 --> 
     <div class="portal" id="p-.E5.BC.80.E5.A7.8B.E5.89.8D.E5.BF.85.E8.AF.BB"> 
      <h5><span class="portal_arrow"></span>开始前必读</h5> 
      <div class="body"> 
       <ul> 
        <li id="n-.E6.9B.B4.E6.96.B0.E6.97.A5.E5.BF.97"><a href="../0/4c93e31f953f24a42b921d2ae8d4e5e0.html">更新日志</a></li> 
        <li id="n-.E5.BC.80.E5.8F.91.E8.80.85.E8.A7.84.E8.8C.83"><a href="../16/52e198333f5c127ddd5c45e875191b14.html">开发者规范</a></li> 
        <li id="n-.E5.85.AC.E4.BC.97.E5.8F.B7.E6.8E.A5.E5.8F.A3.E6.9D.83.E9.99.90.E8.AF.B4.E6.98.8E"><a href="../13/8d4957b72037e3308a0ca1b21f25ae8d.html">公众号接口权限说明</a></li> 
        <li id="n-.E6.8E.A5.E5.8F.A3.E9.A2.91.E7.8E.87.E9.99.90.E5.88.B6.E8.AF.B4.E6.98.8E"><a href="../7/85eff372c164ddc66c47777dc972279f.html">接口频率限制说明</a></li> 
        <li id="n-.E6.8E.A5.E5.8F.A3.E8.BF.94.E5.9B.9E.E7.A0.81.E8.AF.B4.E6.98.8E"><a href="../10/6380dc743053a91c544ffd2b7c959166.html">接口返回码说明</a></li> 
       </ul> 
      </div> 
     </div> 
     <!-- /开始前必读 --> 
     <!-- 开始开发 --> 
     <div class="portal" id="p-.E5.BC.80.E5.A7.8B.E5.BC.80.E5.8F.91"> 
      <h5><span class="portal_arrow"></span>开始开发</h5> 
      <div class="body"> 
       <ul> 
        <li id="n-.E6.8E.A5.E5.85.A5.E6.8C.87.E5.8D.97"><a href="../8/f9a0b8382e0b77d87b3bcc1ce6fbc104.html">接入指南</a></li> 
        <li id="n-.E8.8E.B7.E5.8F.96.E6.8E.A5.E5.8F.A3.E8.B0.83.E7.94.A8.E5.87.AD.E6.8D.AE"><a href="../14/9f9c82c1af308e3b14ba9b973f99a8ba.html">获取接口调用凭据</a></li> 
        <li id="n-.E8.8E.B7.E5.8F.96.E5.BE.AE.E4.BF.A1.E6.9C.8D.E5.8A.A1.E5.99.A8IP.E5.9C.B0.E5.9D.80"><a href="../4/41ef0843d6e108cf6b5649480207561c.html">获取微信服务器IP地址</a></li> 
        <li id="n-.E6.8A.A5.E8.AD.A6.E6.8E.92.E6.9F.A5.E6.8C.87.E5.BC.95"><a href="../7/c478375fae59150b26def82ec061f43b.html">报警排查指引</a></li> 
        <li id="n-.E6.8E.A5.E5.8F.A3.E6.B5.8B.E8.AF.95.E5.8F.B7.E7.94.B3.E8.AF.B7"><a href="http://mp.weixin.qq.com/debug/cgi-bin/sandbox?t=sandbox/login">接口测试号申请</a></li> 
        <li id="n-.E6.8E.A5.E5.8F.A3.E5.9C.A8.E7.BA.BF.E8.B0.83.E8.AF.95"><a href="http://mp.weixin.qq.com/debug/">接口在线调试</a></li> 
        <li id="n-.E5.B8.B8.E8.A7.81.E9.97.AE.E9.A2.98"><a href="http://mp.weixin.qq.com/qa">常见问题</a></li> 
       </ul> 
      </div> 
     </div> 
     <!-- /开始开发 --> 
     <!-- 自定义菜单 --> 
     <div class="portal" id="p-.E8.87.AA.E5.AE.9A.E4.B9.89.E8.8F.9C.E5.8D.95"> 
      <h5><span class="portal_arrow"></span>自定义菜单</h5> 
      <div class="body"> 
       <ul> 
        <li id="n-.E8.87.AA.E5.AE.9A.E4.B9.89.E8.8F.9C.E5.8D.95.E5.88.9B.E5.BB.BA.E6.8E.A5.E5.8F.A3"><a href="../10/0234e39a2025342c17a7d23595c6b40a.html">自定义菜单创建接口</a></li> 
        <li id="n-.E8.87.AA.E5.AE.9A.E4.B9.89.E8.8F.9C.E5.8D.95.E6.9F.A5.E8.AF.A2.E6.8E.A5.E5.8F.A3"><a href="../5/f287d1a5b78a35a8884326312ac3e4ed.html">自定义菜单查询接口</a></li> 
        <li id="n-.E8.87.AA.E5.AE.9A.E4.B9.89.E8.8F.9C.E5.8D.95.E5.88.A0.E9.99.A4.E6.8E.A5.E5.8F.A3"><a href="../3/de21624f2d0d3dafde085dafaa226743.html">自定义菜单删除接口</a></li> 
        <li id="n-.E8.87.AA.E5.AE.9A.E4.B9.89.E8.8F.9C.E5.8D.95.E4.BA.8B.E4.BB.B6.E6.8E.A8.E9.80.81"><a href="../19/a037750e2df0261ab0a84899d16abd33.html">自定义菜单事件推送</a></li> 
        <li id="n-.E4.B8.AA.E6.80.A7.E5.8C.96.E8.8F.9C.E5.8D.95.E6.8E.A5.E5.8F.A3"><a href="../0/c48ccd12b69ae023159b4bfaa7c39c20.html">个性化菜单接口</a></li> 
        <li id="n-.E8.8E.B7.E5.8F.96.E5.85.AC.E4.BC.97.E5.8F.B7.E7.9A.84.E8.8F.9C.E5.8D.95.E9.85.8D.E7.BD.AE"><a href="../14/293d0cb8de95e916d1216a33fcb81fd6.html">获取公众号的菜单配置</a></li> 
       </ul> 
      </div> 
     </div> 
     <!-- /自定义菜单 --> 
     <!-- 消息管理 --> 
     <div class="portal" id="p-.E6.B6.88.E6.81.AF.E7.AE.A1.E7.90.86"> 
      <h5><span class="portal_arrow"></span>消息管理</h5> 
      <div class="body"> 
       <ul> 
        <li id="n-.E6.8E.A5.E6.94.B6.E6.B6.88.E6.81.AF-.E6.8E.A5.E6.94.B6.E6.99.AE.E9.80.9A.E6.B6.88.E6.81.AF"><a href="../17/f298879f8fb29ab98b2f2971d42552fd.html">接收消息-接收普通消息</a></li> 
        <li id="n-.E6.8E.A5.E6.94.B6.E6.B6.88.E6.81.AF-.E6.8E.A5.E6.94.B6.E4.BA.8B.E4.BB.B6.E6.8E.A8.E9.80.81"><a href="../7/9f89d962eba4c5924ed95b513ba69d9b.html">接收消息-接收事件推送</a></li> 
        <li id="n-.E5.8F.91.E9.80.81.E6.B6.88.E6.81.AF-.E8.A2.AB.E5.8A.A8.E5.9B.9E.E5.A4.8D.E6.B6.88.E6.81.AF"><a href="../1/6239b44c206cab9145b1d52c67e6c551.html">发送消息-被动回复消息</a></li> 
        <li id="n-.E5.8F.91.E9.80.81.E6.B6.88.E6.81.AF-.E8.A2.AB.E5.8A.A8.E5.9B.9E.E5.A4.8D.E6.97.B6.E7.9A.84.E5.8A.A0.E8.A7.A3.E5.AF.86"><a href="../14/70e73cedf9fd958d2e23264ba9333ad2.html">发送消息-被动回复时的加解密</a></li> 
        <li id="n-.E5.8F.91.E9.80.81.E6.B6.88.E6.81.AF-.E5.AE.A2.E6.9C.8D.E6.B6.88.E6.81.AF"><a href="../11/c88c270ae8935291626538f9c64bd123.html">发送消息-客服消息</a></li> 
        <li id="n-.E5.8F.91.E9.80.81.E6.B6.88.E6.81.AF-.E7.BE.A4.E5.8F.91.E6.8E.A5.E5.8F.A3"><a href="../15/40b6865b893947b764e2de8e4a1fb55f.html">发送消息-群发接口</a></li> 
        <li id="n-.E5.8F.91.E9.80.81.E6.B6.88.E6.81.AF-.E6.A8.A1.E6.9D.BF.E6.B6.88.E6.81.AF.E6.8E.A5.E5.8F.A3"><a href="../5/6dde9eaa909f83354e0094dc3ad99e05.html">发送消息-模板消息接口</a></li> 
        <li id="n-.E5.8F.91.E9.80.81.E6.B6.88.E6.81.AF-.E6.A8.A1.E6.9D.BF.E6.B6.88.E6.81.AF.E8.BF.90.E8.90.A5.E8.A7.84.E8.8C.83"><a href="../18/8ecd0dfc9acafb2ed86ac3ae8f7c69aa.html">发送消息-模板消息运营规范</a></li> 
        <li id="n-.E8.8E.B7.E5.8F.96.E5.85.AC.E4.BC.97.E5.8F.B7.E8.87.AA.E5.8A.A8.E5.9B.9E.E5.A4.8D.E9.85.8D.E7.BD.AE"><a href="../8/806878e1fc2b9e9aa618ae33896b04c4.html">获取公众号自动回复配置</a></li> 
       </ul> 
      </div> 
     </div> 
     <!-- /消息管理 --> 
     <!-- 微信网页开发 --> 
     <div class="portal" id="p-.E5.BE.AE.E4.BF.A1.E7.BD.91.E9.A1.B5.E5.BC.80.E5.8F.91"> 
      <h5><span class="portal_arrow"></span>微信网页开发</h5> 
      <div class="body"> 
       <ul> 
        <li id="n-.E5.BE.AE.E4.BF.A1.E7.BD.91.E9.A1.B5.E6.8E.88.E6.9D.83"><a href="../4/9ac2e7b1f1d22e9e57260f6553822520.html">微信网页授权</a></li> 
        <li id="n-.E5.BE.AE.E4.BF.A1.E7.BD.91.E9.A1.B5.E5.BC.80.E5.8F.91.E6.A0.B7.E5.BC.8F.E5.BA.93"><a href="../2/ae9782fb42e47ad79eb7b361c2149d16.html">微信网页开发样式库</a></li> 
        <li id="n-.E5.BE.AE.E4.BF.A1JS-SDK"><a href="../11/74ad127cc054f6b80759c40f77ec03db.html">微信JS-SDK</a></li> 
        <li id="n-.E5.BE.AE.E4.BF.A1Web.E5.BC.80.E5.8F.91.E8.80.85.E5.B7.A5.E5.85.B7"><a href="../10/e5f772f4521da17fa0d7304f68b97d7e.html">微信Web开发者工具</a></li> 
       </ul> 
      </div> 
     </div> 
     <!-- /微信网页开发 --> 
     <!-- 素材管理 --> 
     <div class="portal" id="p-.E7.B4.A0.E6.9D.90.E7.AE.A1.E7.90.86"> 
      <h5><span class="portal_arrow"></span>素材管理</h5> 
      <div class="body"> 
       <ul> 
        <li id="n-.E6.96.B0.E5.A2.9E.E4.B8.B4.E6.97.B6.E7.B4.A0.E6.9D.90"><a href="../15/2d353966323806a202cd2deaafe8e557.html">新增临时素材</a></li> 
        <li id="n-.E8.8E.B7.E5.8F.96.E4.B8.B4.E6.97.B6.E7.B4.A0.E6.9D.90"><a href="../9/677a85e3f3849af35de54bb5516c2521.html">获取临时素材</a></li> 
        <li id="n-.E6.96.B0.E5.A2.9E.E6.B0.B8.E4.B9.85.E7.B4.A0.E6.9D.90"><a href="../10/10ea5a44870f53d79449290dfd43d006.html">新增永久素材</a></li> 
        <li id="n-.E8.8E.B7.E5.8F.96.E6.B0.B8.E4.B9.85.E7.B4.A0.E6.9D.90"><a href="../12/3c12fac7c14cb4d0e0d4fe2fbc87b638.html">获取永久素材</a></li> 
        <li id="n-.E5.88.A0.E9.99.A4.E6.B0.B8.E4.B9.85.E7.B4.A0.E6.9D.90"><a href="../7/2212203f4e17253b9aef77dc788f5337.html">删除永久素材</a></li> 
        <li id="n-.E4.BF.AE.E6.94.B9.E6.B0.B8.E4.B9.85.E5.9B.BE.E6.96.87.E7.B4.A0.E6.9D.90"><a href="../10/c7bad9a463db20ff8ccefeedeef51f9e.html">修改永久图文素材</a></li> 
        <li id="n-.E8.8E.B7.E5.8F.96.E7.B4.A0.E6.9D.90.E6.80.BB.E6.95.B0"><a href="../5/a641fd7b5db7a6a946ebebe2ac166885.html">获取素材总数</a></li> 
        <li id="n-.E8.8E.B7.E5.8F.96.E7.B4.A0.E6.9D.90.E5.88.97.E8.A1.A8"><a href="../15/8386c11b7bc4cdd1499c572bfe2e95b3.html">获取素材列表</a></li> 
       </ul> 
      </div> 
     </div> 
     <!-- /素材管理 --> 
     <!-- 用户管理 --> 
     <div class="portal" id="p-.E7.94.A8.E6.88.B7.E7.AE.A1.E7.90.86"> 
      <h5><span class="portal_arrow"></span>用户管理</h5> 
      <div class="body"> 
       <ul> 
        <li id="n-.E7.94.A8.E6.88.B7.E5.88.86.E7.BB.84.E7.AE.A1.E7.90.86"><a href="../8/d6d33cf60bce2a2e4fb10a21be9591b8.html">用户分组管理</a></li> 
        <li id="n-.E8.AE.BE.E7.BD.AE.E7.94.A8.E6.88.B7.E5.A4.87.E6.B3.A8.E5.90.8D"><a href="../16/528098c4a6a87b05120a7665c8db0460.html">设置用户备注名</a></li> 
        <li id="n-.E8.8E.B7.E5.8F.96.E7.94.A8.E6.88.B7.E5.9F.BA.E6.9C.AC.E4.BF.A1.E6.81.AF.28UnionID.E6.9C.BA.E5.88.B6.29"><a href="../1/8a5ce6257f1d3b2afb20f83e72b72ce9.html">获取用户基本信息(UnionID机制)</a></li> 
        <li id="n-.E8.8E.B7.E5.8F.96.E7.94.A8.E6.88.B7.E5.88.97.E8.A1.A8"><a href="../12/54773ff6da7b8bdc95b7d2667d84b1d4.html">获取用户列表</a></li> 
        <li id="n-.E8.8E.B7.E5.8F.96.E7.94.A8.E6.88.B7.E5.9C.B0.E7.90.86.E4.BD.8D.E7.BD.AE"><a href="../4/0bd25e04332eccf83bc2e71df9d3e860.html">获取用户地理位置</a></li> 
       </ul> 
      </div> 
     </div> 
     <!-- /用户管理 --> 
     <!-- 帐号管理 --> 
     <div class="portal" id="p-.E5.B8.90.E5.8F.B7.E7.AE.A1.E7.90.86"> 
      <h5><span class="portal_arrow"></span>帐号管理</h5> 
      <div class="body"> 
       <ul> 
        <li id="n-.E7.94.9F.E6.88.90.E5.B8.A6.E5.8F.82.E6.95.B0.E7.9A.84.E4.BA.8C.E7.BB.B4.E7.A0.81"><a href="../18/167e7d94df85d8389df6c94a7a8f78ba.html">生成带参数的二维码</a></li> 
        <li id="n-.E9.95.BF.E9.93.BE.E6.8E.A5.E8.BD.AC.E7.9F.AD.E9.93.BE.E6.8E.A5.E6.8E.A5.E5.8F.A3"><a href="../6/856aaeb492026466277ea39233dc23ee.html">长链接转短链接接口</a></li> 
        <li id="n-.E5.BE.AE.E4.BF.A1.E8.AE.A4.E8.AF.81.E4.BA.8B.E4.BB.B6.E6.8E.A8.E9.80.81"><a href="../10/2adfb2f10828e87aa1e5c3ef83b17906.html">微信认证事件推送</a></li> 
       </ul> 
      </div> 
     </div> 
     <!-- /帐号管理 --> 
     <!-- 数据统计 --> 
     <div class="portal" id="p-.E6.95.B0.E6.8D.AE.E7.BB.9F.E8.AE.A1"> 
      <h5><span class="portal_arrow"></span>数据统计</h5> 
      <div class="body"> 
       <ul> 
        <li id="n-.E7.94.A8.E6.88.B7.E5.88.86.E6.9E.90.E6.95.B0.E6.8D.AE.E6.8E.A5.E5.8F.A3"><a href="../15/88726a421bfc54654a3095821c3ca3bb.html">用户分析数据接口</a></li> 
        <li id="n-.E5.9B.BE.E6.96.87.E5.88.86.E6.9E.90.E6.95.B0.E6.8D.AE.E6.8E.A5.E5.8F.A3"><a href="../9/d347c6ddb6f86ab11ec3b41c2729c8d9.html">图文分析数据接口</a></li> 
        <li id="n-.E6.B6.88.E6.81.AF.E5.88.86.E6.9E.90.E6.95.B0.E6.8D.AE.E6.8E.A5.E5.8F.A3"><a href="../10/b29e8ca8bf1b0dce033ccb70273f90fa.html">消息分析数据接口</a></li> 
        <li id="n-.E6.8E.A5.E5.8F.A3.E5.88.86.E6.9E.90.E6.95.B0.E6.8D.AE.E6.8E.A5.E5.8F.A3"><a href="../17/252a976f20bd3062af3f03a45f30cff9.html">接口分析数据接口</a></li> 
       </ul> 
      </div> 
     </div> 
     <!-- /数据统计 --> 
     <!-- 微信小店 --> 
     <div class="portal" id="p-.E5.BE.AE.E4.BF.A1.E5.B0.8F.E5.BA.97"> 
      <h5><span class="portal_arrow"></span>微信小店</h5> 
      <div class="body"> 
       <ul> 
        <li id="n-.E5.BE.AE.E4.BF.A1.E5.B0.8F.E5.BA.97.E6.8E.A5.E5.8F.A3"><a href="../6/ae98ac4a7219405153cedc9dddccacca.html">微信小店接口</a></li> 
       </ul> 
      </div> 
     </div> 
     <!-- /微信小店 --> 
     <!-- 微信卡券 --> 
     <div class="portal" id="p-.E5.BE.AE.E4.BF.A1.E5.8D.A1.E5.88.B8"> 
      <h5><span class="portal_arrow"></span>微信卡券</h5> 
      <div class="body"> 
       <ul> 
        <li id="n-.E5.BE.AE.E4.BF.A1.E5.8D.A1.E5.88.B8.E6.8E.A5.E5.8F.A3.E8.AF.B4.E6.98.8E"><a href="../10/597cb57750f375a4b37e2536fd3331ea.html">微信卡券接口说明</a></li> 
        <li id="n-.E5.88.9B.E5.BB.BA.E5.8D.A1.E5.88.B8"><a href="../15/e33671f4ef511b77755142b37502928f.html">创建卡券</a></li> 
        <li id="n-.E6.8A.95.E6.94.BE.E5.8D.A1.E5.88.B8"><a href="../5/f942979ef2f0d313d4d36e3a26766a3d.html">投放卡券</a></li> 
        <li id="n-.E6.A0.B8.E9.94.80.E5.8D.A1.E5.88.B8"><a href="../15/bdfd0c3c6c3b0629e8a425936a973d8b.html">核销卡券</a></li> 
        <li id="n-.E7.AE.A1.E7.90.86.E5.8D.A1.E5.88.B8"><a href="../14/8dd77aeaee85f922db5f8aa6386d385e.html">管理卡券</a></li> 
        <li id="n-.E5.8D.A1.E5.88.B8.E4.BA.8B.E4.BB.B6.E6.8E.A8.E9.80.81"><a href="../16/28b34ee91675a04cb24853768debded4.html">卡券事件推送</a></li> 
        <li id="n-.E6.9C.8B.E5.8F.8B.E7.9A.84.E5.88.B8.E4.B8.93.E5.8C.BA"><a href="../10/333958907c5aae0581e93a24f2df8562.html">朋友的券专区</a></li> 
        <li id="n-.E4.BC.9A.E5.91.98.E5.8D.A1.E4.B8.93.E5.8C.BA"><a href="../15/de148cc4b5190c80002eaf4f6f26c717.html">会员卡专区</a></li> 
        <li id="n-.E7.89.B9.E6.AE.8A.E7.A5.A8.E5.88.B8"><a href="../11/a42da6431597edff7caeaf5d33fac37b.html">特殊票券</a></li> 
        <li id="n-.E7.AC.AC.E4.B8.89.E6.96.B9.E4.BB.A3.E5.88.B6.E4.B8.93.E5.8C.BA"><a href="../13/a1b2bedbca3990108195f13bd7e27401.html">第三方代制专区</a></li> 
        <li id="n-.E5.8D.A1.E5.88.B8.E9.94.99.E8.AF.AF.E7.A0.81"><a href="../7/981e7a73e2bca37a3d1c83f071be6947.html">卡券错误码</a></li> 
       </ul> 
      </div> 
     </div> 
     <!-- /微信卡券 --> 
     <!-- 微信门店 --> 
     <div class="portal" id="p-.E5.BE.AE.E4.BF.A1.E9.97.A8.E5.BA.97"> 
      <h5><span class="portal_arrow"></span>微信门店</h5> 
      <div class="body"> 
       <ul> 
        <li id="n-.E5.BE.AE.E4.BF.A1.E9.97.A8.E5.BA.97.E6.8E.A5.E5.8F.A3"><a href="../11/081986f089826bf94393bef9bf287b8b.html">微信门店接口</a></li> 
       </ul> 
      </div> 
     </div> 
     <!-- /微信门店 --> 
     <!-- 微信智能接口 --> 
     <div class="portal" id="p-.E5.BE.AE.E4.BF.A1.E6.99.BA.E8.83.BD.E6.8E.A5.E5.8F.A3"> 
      <h5><span class="portal_arrow"></span>微信智能接口</h5> 
      <div class="body"> 
       <ul> 
        <li id="n-.E8.AF.AD.E4.B9.89.E7.90.86.E8.A7.A3.E6.8E.A5.E5.8F.A3"><a href="../10/65eb7a43f078cc609cf08dae6805f4a6.html">语义理解接口</a></li> 
       </ul> 
      </div> 
     </div> 
     <!-- /微信智能接口 --> 
     <!-- 微信设备功能 --> 
     <div class="portal" id="p-.E5.BE.AE.E4.BF.A1.E8.AE.BE.E5.A4.87.E5.8A.9F.E8.83.BD"> 
      <h5><span class="portal_arrow"></span>微信设备功能</h5> 
      <div class="body"> 
       <ul> 
        <li id="n-.E8.AE.BE.E5.A4.87.E5.8A.9F.E8.83.BD.E4.BB.8B.E7.BB.8D"><a href="../2/77400d13dc7fca83181bc9806d55b6ce.html">设备功能介绍</a></li> 
       </ul> 
      </div> 
     </div> 
     <!-- /微信设备功能 --> 
     <!-- 微信多客服功能 --> 
     <div class="portal" id="p-.E5.BE.AE.E4.BF.A1.E5.A4.9A.E5.AE.A2.E6.9C.8D.E5.8A.9F.E8.83.BD"> 
      <h5><span class="portal_arrow"></span>微信多客服功能</h5> 
      <div class="body"> 
       <ul> 
        <li id="n-.E5.B0.86.E6.B6.88.E6.81.AF.E8.BD.AC.E5.8F.91.E5.88.B0.E5.A4.9A.E5.AE.A2.E6.9C.8D"><a href="../11/f0e34a15cec66fefb28cf1c0388f68ab.html">将消息转发到多客服</a></li> 
        <li id="n-.E5.AE.A2.E6.9C.8D.E7.AE.A1.E7.90.86"><a href="../18/749901f4e123170fb8a4d447ae6040ba.html">客服管理</a></li> 
        <li id="n-.E5.A4.9A.E5.AE.A2.E6.9C.8D.E4.BC.9A.E8.AF.9D.E6.8E.A7.E5.88.B6"><a href="../4/4b256cfb246b22ad020e07cf8a61a738.html">多客服会话控制</a></li> 
        <li id="n-.E8.8E.B7.E5.8F.96.E5.AE.A2.E6.9C.8D.E8.81.8A.E5.A4.A9.E8.AE.B0.E5.BD.95"><a href="../3/178d2982bd590adf33fc03cf6cf45b33.html">获取客服聊天记录</a></li> 
        <li id="n-PC.E5.AE.A2.E6.88.B7.E7.AB.AF.E8.87.AA.E5.AE.9A.E4.B9.89.E6.8F.92.E4.BB.B6.E6.8E.A5.E5.8F.A3"><a href="../8/3634566e351f497f508c7b9d04636724.html">PC客户端自定义插件接口</a></li> 
       </ul> 
      </div> 
     </div> 
     <!-- /微信多客服功能 --> 
     <!-- 微信摇一摇周边 --> 
     <div class="portal" id="p-.E5.BE.AE.E4.BF.A1.E6.91.87.E4.B8.80.E6.91.87.E5.91.A8.E8.BE.B9"> 
      <h5><span class="portal_arrow"></span>微信摇一摇周边</h5> 
      <div class="body"> 
       <ul> 
        <li id="n-.E7.94.B3.E8.AF.B7.E5.BC.80.E9.80.9A.E6.91.87.E4.B8.80.E6.91.87.E5.91.A8.E8.BE.B9"><a href="../19/9fe9fdbb50fee9f9660438c551142ccf.html">申请开通摇一摇周边</a></li> 
        <li id="n-.E8.AE.BE.E5.A4.87.E7.AE.A1.E7.90.86"><a href="../15/095caa2f4a829f0299db617eaf6ad1cf.html">设备管理</a></li> 
        <li id="n-.E9.A1.B5.E9.9D.A2.E7.AE.A1.E7.90.86"><a href="../15/7a21268ed234b4e648d86e3b91118907.html">页面管理</a></li> 
        <li id="n-.E7.B4.A0.E6.9D.90.E7.AE.A1.E7.90.86"><a href="../12/3b10084ee944a702fd06e54a0f10b1d8.html">素材管理</a></li> 
        <li id="n-.E7.AE.A1.E7.90.86.E8.AE.BE.E5.A4.87.E4.B8.8E.E9.A1.B5.E9.9D.A2.E7.9A.84.E5.85.B3.E8.81.94.E5.85.B3.E7.B3.BB"><a href="../6/0eb3f80f152d2edb95287141e7a6ab5e.html">管理设备与页面的关联关系</a></li> 
        <li id="n-.E8.8E.B7.E5.8F.96.E8.AE.BE.E5.A4.87.E5.8F.8A.E7.94.A8.E6.88.B7.E4.BF.A1.E6.81.AF"><a href="../12/f18e741c4cab6652afe3878774672de4.html">获取设备及用户信息</a></li> 
        <li id="n-.E6.95.B0.E6.8D.AE.E7.BB.9F.E8.AE.A1"><a href="../3/15da0147e3722fd689f363497af0c707.html">数据统计</a></li> 
        <li id="n-.E6.91.87.E4.B8.80.E6.91.87.E5.85.B3.E6.B3.A8JSAPI"><a href="../4/94e3b1dc0416633a2d7f1cfaa71240c8.html">摇一摇关注JSAPI</a></li> 
        <li id="n-.E6.91.87.E4.B8.80.E6.91.87.E4.BA.8B.E4.BB.B6.E9.80.9A.E7.9F.A5"><a href="../3/c71248e1b3efb158f258a48b72e67683.html">摇一摇事件通知</a></li> 
        <li id="n-.E6.91.87.E4.B8.80.E6.91.87.E7.BA.A2.E5.8C.85"><a href="../7/0ddd50ed2421b99fedd071281c074aab.html">摇一摇红包</a></li> 
        <li id="n-Html-5.E9.A1.B5.E9.9D.A2.E8.8E.B7.E5.8F.96.E8.AE.BE.E5.A4.87.E4.BF.A1.E6.81.AF"><a href="../11/c156a3e968b0c1e78157e15275dcc54b.html">Html 5页面获取设备信息</a></li> 
        <li id="n-.E6.91.87.E4.B8.80.E6.91.87.E5.91.A8.E8.BE.B9.E9.94.99.E8.AF.AF.E7.A0.81"><a href="../1/8299371e6e11392757b23a6d1e592331.html">摇一摇周边错误码</a></li> 
       </ul> 
      </div> 
     </div> 
     <!-- /微信摇一摇周边 --> 
     <!-- 微信连Wi-Fi --> 
     <div class="portal" id="p-.E5.BE.AE.E4.BF.A1.E8.BF.9EWi-Fi"> 
      <h5><span class="portal_arrow"></span>微信连Wi-Fi</h5> 
      <div class="body"> 
       <ul> 
        <li id="n-.E5.BE.AE.E4.BF.A1.E8.BF.9EWi-Fi.E5.BC.80.E5.8F.91.E8.80.85.E6.8C.87.E5.BC.95"><a href="../9/fd2d692e28b938a8d618f57cf9c79fb1.html">微信连Wi-Fi开发者指引</a></li> 
        <li id="n-Wi-Fi.E7.A1.AC.E4.BB.B6.E9.89.B4.E6.9D.83.E5.8D.8F.E8.AE.AE.E6.8E.A5.E5.8F.A3.E8.AF.B4.E6.98.8E"><a href="../10/0ef643c7147fdf689e0a780d8c08ab96.html">Wi-Fi硬件鉴权协议接口说明</a></li> 
        <li id="n-Wi-Fi.E8.BD.AF.E4.BB.B6.E6.9C.8D.E5.8A.A1.E7.AE.A1.E7.90.86.E6.8E.A5.E5.8F.A3.E8.AF.B4.E6.98.8E"><a href="../14/70e147b2ace3247f88f1c2aaaa57568e.html">Wi-Fi软件服务管理接口说明</a></li> 
        <li id="n-.E5.BC.80.E9.80.9A.E5.BE.AE.E4.BF.A1.E8.BF.9EWi-Fi.E6.8F.92.E4.BB.B6"><a href="../11/a6a3731b23ed4203f5d08030cd5bf4c3.html">开通微信连Wi-Fi插件</a></li> 
        <li id="n-Wi-Fi.E9.97.A8.E5.BA.97.E7.AE.A1.E7.90.86"><a href="../9/0afbb08a0f06e87dd3669a2c1e19edd5.html">Wi-Fi门店管理</a></li> 
        <li id="n-Wi-Fi.E8.AE.BE.E5.A4.87.E7.AE.A1.E7.90.86"><a href="../17/438e819a53e9426b202c3bc0afbad749.html">Wi-Fi设备管理</a></li> 
        <li id="n-.E9.85.8D.E7.BD.AE.E8.BF.9E.E7.BD.91.E6.96.B9.E5.BC.8F"><a href="../17/22648869929525f829a3de1bfc73eb4d.html">配置连网方式</a></li> 
        <li id="n-.E5.95.86.E5.AE.B6.E4.B8.BB.E9.A1.B5.E7.AE.A1.E7.90.86"><a href="../14/4e14adf8639aeb67d42df05cb792da9e.html">商家主页管理</a></li> 
        <li id="n-Wi-Fi.E6.95.B0.E6.8D.AE.E7.BB.9F.E8.AE.A1"><a href="../11/f5f481aeeb62b9b0848315f78123b4d7.html">Wi-Fi数据统计</a></li> 
        <li id="n-.E8.BF.9E.E7.BD.91.E5.90.8E.E4.B8.8B.E5.8F.91.E6.B6.88.E6.81.AF"><a href="../19/bac84e64da24f928c3e536c742d4e0b7.html">连网后下发消息</a></li> 
        <li id="n-Wi-Fi.E9.94.99.E8.AF.AF.E7.A0.81"><a href="../9/b1211ca9404ec481f94e88d0dd344e85.html">Wi-Fi错误码</a></li> 
       </ul> 
      </div> 
     </div> 
     <!-- /微信连Wi-Fi --> 
     <!-- 微信扫一扫 --> 
     <div class="portal" id="p-.E5.BE.AE.E4.BF.A1.E6.89.AB.E4.B8.80.E6.89.AB"> 
      <h5><span class="portal_arrow"></span>微信扫一扫</h5> 
      <div class="body"> 
       <ul> 
        <li id="n-.E6.89.AB.E4.B8.80.E6.89.AB.E6.8E.A5.E5.85.A5.E6.8C.87.E5.8D.97"><a href="../19/e833eb10470cc25cad4719677c46ecdb.html">扫一扫接入指南</a></li> 
        <li id="n-.E5.95.86.E5.93.81.E5.88.9B.E5.BB.BA"><a href="../6/c61604ff6890d386d6227945ad4a68d2.html">商品创建</a></li> 
        <li id="n-.E5.95.86.E5.93.81.E5.8F.91.E5.B8.83"><a href="../15/1007691d0f1c10a0588c6517f12ed70f.html">商品发布</a></li> 
        <li id="n-.E5.95.86.E5.93.81.E7.AE.A1.E7.90.86"><a href="../15/7fa787701295b884410b5163e13313af.html">商品管理</a></li> 
        <li id="n-.E6.89.AB.E4.B8.80.E6.89.AB.E4.BA.8B.E4.BB.B6.E6.8E.A8.E9.80.81"><a href="../15/f4109a5e44b4bfbc7eb1337eb739f3e3.html">扫一扫事件推送</a></li> 
        <li id="n-.E9.94.99.E8.AF.AF.E7.A0.81"><a href="../7/91dcb5ffa7d087a23299316c3c396e93.html">错误码</a></li> 
        <li id="n-.E5.9C.A8.E7.BA.BF.E5.B8.AE.E5.8A.A9.E5.B7.A5.E5.85.B7"><a href="../11/9f75990a5e9f6c09c846fd918921e0d7.html">在线帮助工具</a></li> 
        <li id="n-.E6.89.AB.E4.B8.80.E6.89.AB.E5.B8.B8.E8.A7.81.E9.97.AE.E9.A2.98"><a href="../15/b11cde45d1dcb23a94f493dd1e1320cb.html">扫一扫常见问题</a></li> 
       </ul> 
      </div> 
     </div> 
     <!-- /微信扫一扫 --> 
     <!-- SEARCH --> 
     <!-- /SEARCH --> 
     <!-- TOOLBOX --> 
     <!-- /TOOLBOX --> 
     <!-- LANGUAGES --> 
     <!-- /LANGUAGES --> 
    </div> 
    <!-- /panel --> 
    <!-- content --> 
    <div id="content"> 
     <!-- header --> 
     <div id="mw-head" class="noprint" style="visibility:hidden"> 
      <!-- 0 --> 
      <div id="p-personal" class=""> 
       <h5>个人工具</h5> 
       <ul> 
        <li id="pt-anonuserpage"><a href="../0/f33145bff5a2445cabbd49fc12e8f2e0.html" title="您编辑本站所用IP的对应用户页 [.]" accesskey="." class="new">10.9.161.40</a></li> 
        <li id="pt-anontalk"><a href="../12/4aa3e991f9670e48be3d9c6d01c4c568.html" title="对于来自此IP地址的编辑的对话 [n]" accesskey="n" class="new">该IP的讨论页</a></li> 
        <li id="pt-anonlogin"><a href="../0/0667a857d2fd1bf0218986e1c136869c.html" title="我们鼓励您登录，但这并不是必须的 [o]" accesskey="o">登录</a></li> 
       </ul> 
      </div> 
      <!-- /0 --> 
      <div id="left-navigation"> 
       <!-- 0 --> 
       <div id="p-namespaces" class="vectorTabs"> 
        <h5>名字空间</h5> 
        <ul> 
         <li id="ca-nstab-main" class="selected"><span><a href="../5/f942979ef2f0d313d4d36e3a26766a3d.html" title="查看页面内容 [c]" accesskey="c">页面</a></span></li> 
         <li id="ca-talk" class="new"><span><a href="#" title="关于页面正文的讨论 [t]" accesskey="t">讨论</a></span></li> 
        </ul> 
       </div> 
       <!-- /0 --> 
       <!-- 1 --> 
       <div id="p-variants" class="vectorMenu emptyPortlet"> 
        <h5><span>变换</span><a href="#"></a></h5> 
        <div class="menu"> 
         <ul> 
         </ul> 
        </div> 
       </div> 
       <!-- /1 --> 
      </div> 
      <div id="right-navigation"> 
       <!-- 0 --> 
       <div id="p-views" class="vectorTabs"> 
        <h5>查看</h5> 
        <ul> 
         <li id="ca-view" class="selected"><span><a href="../5/f942979ef2f0d313d4d36e3a26766a3d.html">阅读</a></span></li> 
         <li id="ca-viewsource"><span><a href="#" title="此页面已被保护，你可以查看其源代码。 [e]" accesskey="e">查看源代码</a></span></li> 
         <li id="ca-history" class="collapsible "><span><a href="#" title="此页面的早前修订版本 [h]" accesskey="h">查看历史</a></span></li> 
        </ul> 
       </div> 
       <!-- /0 --> 
       <!-- 1 --> 
       <div id="p-cactions" class="vectorMenu emptyPortlet"> 
        <h5><span>动作</span><a href="#"></a></h5> 
        <div class="menu"> 
         <ul> 
         </ul> 
        </div> 
       </div> 
       <!-- /1 --> 
       <!-- 2 --> 
       <div id="p-search"> 
        <h5><label for="searchInput">搜索</label></h5> 
        <form action="/wiki/index.php" id="searchform"> 
         <input type="hidden" name="title" value="特殊:搜索"> 
         <input id="searchInput" name="search" type="text" title="搜索该网站 [f]" accesskey="f" value=""> 
         <input type="submit" name="go" class="searchButton" id="searchGoButton" value="进入" title="如果相同的标题存在的话便直接前往该页面"> 
         <input type="submit" name="fulltext" class="searchButton" id="mw-searchButton" value="搜索" title="搜索该文字的页面"> 
        </form> 
       </div> 
       <!-- /2 --> 
      </div> 
     </div> 
     <!-- /header --> 
     <a id="top"></a> 
     <div id="mw-js-message" style="display:none;"></div> 
     <!-- firstHeading --> 
     <div class="content_hd"> 
      <h2 id="firstHeading" class="">投放卡券</h2> 
      <div class="info"> 
      </div> 
     </div> 
     <!-- /firstHeading --> 
     <!-- bodyContent --> 
     <div id="bodyContent" class="bodyContent"> 
      <!-- tagline --> 
      <div id="siteSub">
       出自微信公众平台开发者文档
      </div> 
      <!-- /tagline --> 
      <!-- subtitle --> 
      <div id="contentSub"></div> 
      <!-- /subtitle --> 
      <!-- jumpto --> 
      <div id="jump-to-nav">
        跳转到： 
       <a href="#mw-head">导航</a>, 
       <a href="#p-search">搜索</a> 
      </div> 
      <!-- /jumpto --> 
      <!-- bodytext --> 
      <table id="toc" class="toc">
       <tbody>
        <tr>
         <td>
          <div id="toctitle">
           <h2>目录</h2>
          </div> 
          <ul> 
           <li class="toclevel-1 tocsection-1"><a href="#.E6.9B.B4.E6.96.B0.E6.97.A5.E5.BF.97"><span class="tocnumber">1</span> <span class="toctext">更新日志</span></a> 
            <ul> 
             <li class="toclevel-2 tocsection-2"><a href="#.E5.88.9B.E5.BB.BA.E4.BA.8C.E7.BB.B4.E7.A0.81.E6.8E.A5.E5.8F.A3"><span class="tocnumber">1.1</span> <span class="toctext">创建二维码接口</span></a></li> 
            </ul> </li> 
           <li class="toclevel-1 tocsection-3"><a href="#.E6.B7.BB.E5.8A.A0.E5.8D.A1.E5.88.B8JS-SDK"><span class="tocnumber">2</span> <span class="toctext">添加卡券JS-SDK</span></a></li> 
           <li class="toclevel-1 tocsection-4"><a href="#.E9.80.9A.E8.BF.87.E5.8D.A1.E5.88.B8.E8.B4.A7.E6.9E.B6.E6.8A.95.E6.94.BE.E5.8D.A1.E5.88.B8"><span class="tocnumber">3</span> <span class="toctext">通过卡券货架投放卡券</span></a> 
            <ul> 
             <li class="toclevel-2 tocsection-5"><a href="#.E5.88.9B.E5.BB.BA.E8.B4.A7.E6.9E.B6.E6.8E.A5.E5.8F.A3"><span class="tocnumber">3.1</span> <span class="toctext">创建货架接口</span></a></li> 
            </ul> </li> 
           <li class="toclevel-1 tocsection-6"><a href="#.E7.BE.A4.E5.8F.91.E5.8D.A1.E5.88.B8"><span class="tocnumber">4</span> <span class="toctext">群发卡券</span></a> 
            <ul> 
             <li class="toclevel-2 tocsection-7"><a href="#.E5.AF.BC.E5.85.A5.E8.87.AA.E5.AE.9A.E4.B9.89code"><span class="tocnumber">4.1</span> <span class="toctext">导入自定义code</span></a> 
              <ul> 
               <li class="toclevel-3 tocsection-8"><a href="#.E5.A1.AB.E5.85.A5.2F.E6.9B.B4.E6.96.B0.E5.AF.BC.E5.85.A5code.E5.BF.85.E9.9C.80.E5.AD.97.E6.AE.B5"><span class="tocnumber">4.1.1</span> <span class="toctext">填入/更新导入code必需字段</span></a></li> 
               <li class="toclevel-3 tocsection-9"><a href="#.E5.AF.BC.E5.85.A5code.E6.8E.A5.E5.8F.A3"><span class="tocnumber">4.1.2</span> <span class="toctext">导入code接口</span></a></li> 
               <li class="toclevel-3 tocsection-10"><a href="#.E6.9F.A5.E8.AF.A2.E5.AF.BC.E5.85.A5code.E6.95.B0.E7.9B.AE.E6.8E.A5.E5.8F.A3"><span class="tocnumber">4.1.3</span> <span class="toctext">查询导入code数目接口</span></a></li> 
               <li class="toclevel-3 tocsection-11"><a href="#.E6.A0.B8.E6.9F.A5code.E6.8E.A5.E5.8F.A3"><span class="tocnumber">4.1.4</span> <span class="toctext">核查code接口</span></a></li> 
              </ul> </li> 
             <li class="toclevel-2 tocsection-12"><a href="#.E5.9B.BE.E6.96.87.E6.B6.88.E6.81.AF.E7.BE.A4.E5.8F.91.E5.8D.A1.E5.88.B8"><span class="tocnumber">4.2</span> <span class="toctext">图文消息群发卡券</span></a></li> 
             <li class="toclevel-2 tocsection-13"><a href="#.E6.A0.B9.E6.8D.AE.E5.88.86.E7.BB.84.E7.BE.A4.E5.8F.91.E5.8D.A1.E5.88.B8.E6.B6.88.E6.81.AF"><span class="tocnumber">4.3</span> <span class="toctext">根据分组群发卡券消息</span></a></li> 
             <li class="toclevel-2 tocsection-14"><a href="#.E6.A0.B9.E6.8D.AEOpenID.E5.88.97.E8.A1.A8.E7.BE.A4.E5.8F.91.E5.8D.A1.E5.88.B8.E6.B6.88.E6.81.AF"><span class="tocnumber">4.4</span> <span class="toctext">根据OpenID列表群发卡券消息</span></a></li> 
             <li class="toclevel-2 tocsection-15"><a href="#.E5.AE.A2.E6.9C.8D.E6.B6.88.E6.81.AF.E4.B8.8B.E5.8F.91.E5.8D.A1.E5.88.B8"><span class="tocnumber">4.5</span> <span class="toctext">客服消息下发卡券</span></a></li> 
             <li class="toclevel-2 tocsection-16"><a href="#.E9.A2.84.E8.A7.88.E6.8E.A5.E5.8F.A3"><span class="tocnumber">4.6</span> <span class="toctext">预览接口</span></a></li> 
            </ul> </li> 
           <li class="toclevel-1 tocsection-17"><a href="#.E6.8A.95.E6.94.BE.E6.B8.A0.E9.81.93.E6.95.B0.E6.8D.AE.E7.BB.9F.E8.AE.A1"><span class="tocnumber">5</span> <span class="toctext">投放渠道数据统计</span></a></li> 
           <li class="toclevel-1 tocsection-18"><a href="#.E8.AE.BE.E7.BD.AE.E6.B5.8B.E8.AF.95.E7.99.BD.E5.90.8D.E5.8D.95"><span class="tocnumber">6</span> <span class="toctext">设置测试白名单</span></a></li> 
          </ul> </td>
        </tr>
       </tbody>
      </table> 
      <h2> <span class="mw-headline" id=".E6.9B.B4.E6.96.B0.E6.97.A5.E5.BF.97"> 更新日志 </span></h2> 
      <table border="1" cellspacing="0" cellpadding="2" align="center" width="700px"> 
       <tbody>
        <tr> 
         <th style="width:100px">版本号 </th> 
         <th>更新内容 </th> 
         <th>更新时间 </th>
        </tr> 
        <tr> 
         <td> V1.1 </td> 
         <td> 1.新增卡券货架创建接口，支持开发者调用接口创建卡券货架进行卡券投放 <p>2. 新增导入code接口，支持自定义code开发者通过导入code通过群发、客服等渠道 派发卡券 </p> </td> 
         <td> 2015-8-12 </td>
        </tr> 
        <tr> 
         <td> V1.2 </td> 
         <td> 新增扫描二维码批量领取接口，用户扫描二维码可以同时领取多张卡券 </td> 
         <td> 2015-8-31 </td>
        </tr> 
       </tbody>
      </table> 
      <h3> <span class="mw-headline" id=".E5.88.9B.E5.BB.BA.E4.BA.8C.E7.BB.B4.E7.A0.81.E6.8E.A5.E5.8F.A3"><b>创建二维码接口</b></span></h3> 
      <p>开发者可调用该接口生成一张卡券二维码供用户扫码后添加卡券到卡包。 </p>
      <p>自定义Code码的卡券调用接口时，post数据中需指定code，非自定义code不需指定，指定openid同理。指定后的二维码只能被用户扫描领取一次。 </p>
      <p>注：该接口仅支持卡券功能，供已开通卡券功能权限的商户（订阅号、服务号）调用。 已认证服务号的商户也可使用高级接口中<a href="../18/167e7d94df85d8389df6c94a7a8f78ba.html" class="external text" rel="nofollow">生成带参数的二维码接口</a>生成卡券二维码。 </p>
      <p>获取二维码ticket后，开发者可用<a href="../18/167e7d94df85d8389df6c94a7a8f78ba.html" class="external text" rel="nofollow">通过ticket换取二维码接口</a>换取二维码图片详情。 </p>
      <p><b>接口调用请求说明</b> </p> 
      <pre>http请求方式: POST
<a href="https://api.weixin.qq.com/card/qrcode/create?access_token=TOKEN" class="external free" rel="nofollow">https://api.weixin.qq.com/card/qrcode/create?access_token=TOKEN</a>
</pre> 
      <p><b>参数说明</b> </p> 
      <table border="1" cellspacing="0" cellpadding="2" align="center" width="700px"> 
       <tbody>
        <tr> 
         <th style="width:120px">参数 </th> 
         <th style="width:120px">是否必须 </th> 
         <th>说明 </th>
        </tr> 
        <tr> 
         <td> POST数据 </td> 
         <td> 是 </td> 
         <td> Json数据 </td>
        </tr> 
        <tr> 
         <td> access_token </td> 
         <td> 是 </td> 
         <td> 调用接口凭证 </td>
        </tr> 
       </tbody>
      </table> 
      <p><b>POST数据</b> 开发者可以设置扫描二维码领取单张卡券，此时POST数据为： </p> 
      <pre> {
"action_name": "QR_CARD", 
"expire_seconds": 1800,
"action_info": {
"card": {
"card_id": "pFS7Fjg8kV1IdDz01r4SQwMkuCKc", 
"code": "198374613512",
"openid": "oFS7Fjl0WsZ9AMZqrI80nbIq8xrA",
"is_unique_code": false ,
"outer_id"&nbsp;: 1
  }
 }
}
</pre> 
      <p>当开发者设置扫描二维码领取多张卡券，此时POST数据为： </p> 
      <pre>{
"action_name": "QR_MULTIPLE_CARD", 
"action_info": {
"multiple_card": {
"card_list": [
{
"card_id": "p1Pj9jgj3BcomSgtuW8B1wl-wo88",
"code":"2392583481"
}, 
{
"card_id": "p1Pj9jgj3BcomSgtuW8B1wl-wo98",
"code":"2392583482"
}
]
}
}
}
</pre> 
      <table border="1" cellspacing="0" cellpadding="4" align="center" width="700px"> 
       <tbody>
        <tr> 
         <th style="width:100px">参数名 </th> 
         <th>必填 </th> 
         <th>类型 </th> 
         <th>示例值 </th> 
         <th>描述 </th>
        </tr> 
        <tr> 
         <td> code </td> 
         <td> 是 </td> 
         <td> string(20) </td> 
         <td> 110201201245 </td> 
         <td> 卡券Code码,use_custom_code字段为true的卡券必须填写，非自定义code不必填写。。 </td>
        </tr> 
        <tr> 
         <td> card_id </td> 
         <td> 否 </td> 
         <td> string(32) </td> 
         <td> pFS7Fjg8kV1IdDz01r4SQwMkuCKc </td> 
         <td> 卡券ID。 </td>
        </tr> 
        <tr> 
         <td> openid </td> 
         <td> 否 </td> 
         <td> string(32) </td> 
         <td> oXch-jkrxp42VQu8ldweCwDt97qo </td> 
         <td> 指定领取者的openid，只有该用户能领取。bind_openid字段为true的卡券必须填写，非指定openid不必填写。 </td>
        </tr> 
        <tr> 
         <td> expire_seconds </td> 
         <td> 否 </td> 
         <td> unsigned int </td> 
         <td> 60 </td> 
         <td> 指定二维码的有效时间，范围是60 ~ 1800秒。不填默认为永久有效。 </td>
        </tr> 
        <tr> 
         <td> is_unique_code </td> 
         <td> 否 </td> 
         <td> bool </td> 
         <td> false </td> 
         <td> 指定下发二维码，生成的二维码随机分配一个code，领取后不可再次扫描。填写true或false。默认false，注意填写该字段时，卡券须通过审核且库存不为0。 </td>
        </tr> 
        <tr> 
         <td> outer_id </td> 
         <td> 否 </td> 
         <td> int </td> 
         <td> 12 </td> 
         <td> 领取场景值，用于领取渠道的数据统计，默认值为0，字段类型为整型，长度限制为60位数字。用户领取卡券后触发的<a href="../16/28b34ee91675a04cb24853768debded4.html#.E9.A2.86.E5.8F.96.E4.BA.8B.E4.BB.B6.E6.8E.A8.E9.80.81" class="external text" rel="nofollow">事件推送</a>中会带上此自定义场景值。 </td>
        </tr> 
       </tbody>
      </table> 
      <p><b>返回数据</b> </p>
      <p>数据示例： </p> 
      <pre>{
 "errcode": 0,
 "errmsg": "ok",
 "ticket":      "gQHB8DoAAAAAAAAAASxodHRwOi8vd2VpeGluLnFxLmNvbS9xL0JIV3lhX3psZmlvSDZmWGVMMTZvAAIEsNnKVQMEIAMAAA==",//获取ticket后需调用换取二维码接口获取二维码图片，详情见字段说明。
 "expire_seconds": 1800,
 "url": "<a href="http://weixin.qq.com/q/BHWya_zlfioH6fXeL16o" class="external free" rel="nofollow">http://weixin.qq.com/q/BHWya_zlfioH6fXeL16o</a> ",
 "show_qrcode_url": " <a href="https://mp.weixin.qq.com/cgi-bin/showqrcode" class="external free" rel="nofollow">https://mp.weixin.qq.com/cgi-bin/showqrcode</a>?  ticket=gQH98DoAAAAAAAAAASxodHRwOi8vd2VpeGluLnFxLmNvbS9xL0czVzRlSWpsamlyM2plWTNKVktvAAIE6SfgVQMEgDPhAQ%3D%3D"
 }
</pre> 
      <table border="1" cellspacing="0" cellpadding="7" align="center" width="700px"> 
       <tbody>
        <tr> 
         <th style="width:350px">参数名 </th> 
         <th>描述 </th>
        </tr> 
        <tr> 
         <td> errcode </td> 
         <td> 错误码 </td>
        </tr> 
        <tr> 
         <td> errmsg </td> 
         <td>错误信息 </td>
        </tr> 
        <tr> 
         <td> ticket </td> 
         <td> 获取的二维码ticket，凭借此ticket调用<a href="../18/167e7d94df85d8389df6c94a7a8f78ba.html" class="external text" rel="nofollow">通过ticket换取二维码接口</a>可以在有效时间内换取二维码。 </td>
        </tr> 
        <tr> 
         <td>url </td> 
         <td>二维码图片解析后的地址，开发者可根据该地址自行生成需要的二维码图片 </td>
        </tr> 
        <tr> 
         <td>show_qrcode_url </td> 
         <td>二维码显示地址，点击后跳转二维码页面 </td>
        </tr> 
       </tbody>
      </table> 
      <h2> <span class="mw-headline" id=".E6.B7.BB.E5.8A.A0.E5.8D.A1.E5.88.B8JS-SDK"><b>添加卡券JS-SDK</b></span></h2> 
      <p>微信 JS-SDK 仅支持在微信内置浏览器中使用,其他浏览器调用无效。微信提供addCard接口供商户前端网页调用,用于将一张或多张卡券添加到用户卡包。详情见<a href="../11/74ad127cc054f6b80759c40f77ec03db.html#.E6.89.B9.E9.87.8F.E6.B7.BB.E5.8A.A0.E5.8D.A1.E5.88.B8.E6.8E.A5.E5.8F.A3" class="external text" rel="nofollow">批量添加卡券接口</a>。 </p>
      <p><a href="#" class="image"><img alt="添加JS-SDK.png" src="../static/assets/ff82fd2ac01efc392c30a657e37f896a.png" width="844" height="440"></a> </p> 
      <h2> <span class="mw-headline" id=".E9.80.9A.E8.BF.87.E5.8D.A1.E5.88.B8.E8.B4.A7.E6.9E.B6.E6.8A.95.E6.94.BE.E5.8D.A1.E5.88.B8"><b>通过卡券货架投放卡券</b></span></h2> 
      <p><b>卡券货架简介</b> </p>
      <p>卡券货架支持开发者通过调用接口生成一个卡券领取H5页面，并获取页面链接，进行卡券投放动作。 <font color="#FF0000">目前卡券货架仅支持非自定义code的卡券</font>，自定义code的卡券需先调用<a href="../5/f942979ef2f0d313d4d36e3a26766a3d.html#.E5.AF.BC.E5.85.A5.E8.87.AA.E5.AE.9A.E4.B9.89code" class="external text" rel="nofollow">导入code接口</a>将code导入才能正常使用。 </p>
      <p><a href="#" class="image"><img alt="卡券货架.png" src="../static/assets/69da938facf06f2025ec136f78902e56.png" width="646" height="378"></a> </p> 
      <h3> <span class="mw-headline" id=".E5.88.9B.E5.BB.BA.E8.B4.A7.E6.9E.B6.E6.8E.A5.E5.8F.A3"><b>创建货架接口</b></span></h3> 
      <p><b>接口说明</b> </p>
      <p>开发者需调用该接口创建货架链接，用于卡券投放。创建货架时需填写投放路径的场景字段。 </p>
      <p><br> <b>接口调用请求说明</b> </p> 
      <pre>http请求方式: POST
<a href="https://api.weixin.qq.com/card/landingpage/create?access_token=$TOKEN" class="external free" rel="nofollow">https://api.weixin.qq.com/card/landingpage/create?access_token=$TOKEN</a>
</pre> 
      <p><b>请求参数说明</b> </p> 
      <table border="1" cellspacing="0" cellpadding="2" align="center" width="700px"> 
       <tbody>
        <tr> 
         <th style="width:120px">参数 </th> 
         <th style="width:120px">是否必须 </th> 
         <th>说明 </th>
        </tr> 
        <tr> 
         <td> access_token </td> 
         <td> 是 </td> 
         <td> 调用接口凭证 </td>
        </tr> 
        <tr> 
         <td> buffer </td> 
         <td> 是 </td> 
         <td> 文件的数据流 </td>
        </tr> 
       </tbody>
      </table> 
      <p><b>POST数据</b> </p> 
      <pre>{  
"banner":"<a href="http://mmbiz.qpic.cn/mmbiz/iaL1LJM1mF9aRKPZJkmG8xXhiaHqkKSVMMWeN3hLut7X7h" class="external free" rel="nofollow">http://mmbiz.qpic.cn/mmbiz/iaL1LJM1mF9aRKPZJkmG8xXhiaHqkKSVMMWeN3hLut7X7h</a>  icFN",
   "page_title": "惠城优惠大派送",
   "can_share": true,
   "scene": "SCENE_NEAR_BY",
   "card_list": [
       {
           "card_id": "pXch-jnOlGtbuWwIO2NDftZeynRE",
           "thumb_url": "www.qq.com/a.jpg"
       },
       {
           "card_id": "pXch-jnAN-ZBoRbiwgqBZ1RV60fI",
           "thumb_url": "www.qq.com/b.jpg"
       }
   ]
}
</pre> 
      <p>参数说明： </p> 
      <table border="1" cellspacing="0" cellpadding="2" align="center" width="700px"> 
       <tbody>
        <tr> 
         <th style="width:100px">字段 </th> 
         <th>说明 </th> 
         <th>是否必填 </th>
        </tr> 
        <tr> 
         <td>banner </td> 
         <td>页面的banner图片链接，须调用，建议尺寸为640*300。 </td> 
         <td>是 </td>
        </tr> 
        <tr> 
         <td>title </td> 
         <td>页面的title。 </td> 
         <td>是 </td>
        </tr> 
        <tr> 
         <td>can_share </td> 
         <td>页面是否可以分享,填入true/false </td> 
         <td>是 </td>
        </tr> 
        <tr> 
         <td>scene </td> 
         <td>投放页面的场景值； <p>SCENE_NEAR_BY 附近 SCENE_MENU 自定义菜单 SCENE_QRCODE 二维码 SCENE_ARTICLE 公众号文章 SCENE_H5 h5页面 SCENE_IVR 自动回复 SCENE_CARD_CUSTOM_CELL 卡券自定义cell </p> </td> 
         <td>是 </td>
        </tr> 
        <tr> 
         <td>cardlist </td> 
         <td>卡券列表，每个item有两个字段 </td> 
         <td>是 </td>
        </tr> 
        <tr> 
         <td>cardid </td> 
         <td>所要在页面投放的cardid </td> 
         <td>是 </td>
        </tr> 
        <tr> 
         <td>thumb_url </td> 
         <td>缩略图url </td> 
         <td>是 </td>
        </tr> 
       </tbody>
      </table> 
      <p><b>返回数据说明</b> </p> 
      <pre>{
     "errcode":0,
     "errmsg":"ok",
     "url":"www.test.url",
     "page_id":1
 }
</pre> 
      <p>字段说明： </p> 
      <table border="1" cellspacing="0" cellpadding="2" align="center" width="700px"> 
       <tbody>
        <tr> 
         <th style="width:350px">字段 </th> 
         <th>说明 </th>
        </tr> 
        <tr> 
         <td>errcode </td> 
         <td>错误码，0为正常。 </td>
        </tr> 
        <tr> 
         <td>errmsg </td> 
         <td>错误信息。 </td>
        </tr> 
        <tr> 
         <td>url </td> 
         <td>货架链接。 </td>
        </tr> 
        <tr> 
         <td>page_id </td> 
         <td>货架ID。货架的唯一标识。 </td>
        </tr> 
       </tbody>
      </table> 
      <h2> <span class="mw-headline" id=".E7.BE.A4.E5.8F.91.E5.8D.A1.E5.88.B8"> <b>群发卡券</b> </span></h2> 
      <p><font color="#FF0000"> 请开发者特别注意，目前群发卡券接口仅支持投放非自定义Code码的卡券。自定义code码的商户若想使用该功能需调用导入code接口将自定义code先导入微信服务器。 </font> </p>
      <p>自定义Code码与非自定义Code码的区别见<a href="../15/e33671f4ef511b77755142b37502928f.html#.E6.98.AF.E5.90.A6.E8.87.AA.E5.AE.9A.E4.B9.89Code.E7.A0.81" class="external text" rel="nofollow">是否自定义Code码</a>。 </p> 
      <h3> <span class="mw-headline" id=".E5.AF.BC.E5.85.A5.E8.87.AA.E5.AE.9A.E4.B9.89code"><b>导入自定义code</b></span></h3> 
      <p><b>接口简介及开发注意事项</b> </p>
      <p><font color="#FF0000">该模块只针对自定义code商户，非自定义code开发者请自动忽略。</font> 开发者可以将自定义code提前导入至微信服务器，以获得和非自定义code商户同样的投放能力，如分组群发、客服消息下发卡券等。 </p>
      <p><font color="#FF0000">导入code后的卡券在投放时等同于非自定义code卡券</font> </p>
      <p><b>新创建卡券情况</b> </p>
      <p>如果开发者打算新创建一张支持导入code模式的卡券，不同于以往的创建方式，建议开发者采用以下流程创建预存code模式卡券，否则会报错。 </p>
      <p>步骤一：<a href="../15/e33671f4ef511b77755142b37502928f.html#.E5.88.9B.E5.BB.BA.E5.8D.A1.E5.88.B8" class="external text" rel="nofollow">创建</a>预存模式卡券，将库存quantity初始值设置为0，并填入get_custom_code_mode字段； </p>
      <p>步骤二：待卡券通过审核后，调用<a href="../5/f942979ef2f0d313d4d36e3a26766a3d.html#.E5.AF.BC.E5.85.A5code.E6.8E.A5.E5.8F.A3" class="external text" rel="nofollow">导入code接口</a>并<a href="../5/f942979ef2f0d313d4d36e3a26766a3d.html#.E6.A0.B8.E6.9F.A5code.E6.8E.A5.E5.8F.A3" class="external text" rel="nofollow">核查code</a>； </p>
      <p>步骤三：调用<a href="../14/8dd77aeaee85f922db5f8aa6386d385e.html#.E4.BF.AE.E6.94.B9.E5.BA.93.E5.AD.98.E6.8E.A5.E5.8F.A3" class="external text" rel="nofollow">修改库存接口</a>，须令卡券库存小于或等于导入code的数目。（为了避免混乱建议设置为相等） </p>
      <p><a href="#" class="image"><img alt="导入code1.png" src="../static/assets/d2e4dd1d86e8ccac3ae06178bfbe1231.png" width="1008" height="518"></a> </p>
      <p><b>非新创建卡券</b> </p>
      <p>如果开发者已经有一张卡券，想把它改为预存code模式，建议开发者按照以下流程对卡券进行更新。 </p>
      <p>步骤一：调用<a href="../5/f942979ef2f0d313d4d36e3a26766a3d.html#.E5.AF.BC.E5.85.A5code.E6.8E.A5.E5.8F.A3" class="external text" rel="nofollow">导入code接口</a>导入一定量的自定义code并<a href="../5/f942979ef2f0d313d4d36e3a26766a3d.html#.E6.A0.B8.E6.9F.A5code.E6.8E.A5.E5.8F.A3" class="external text" rel="nofollow">核查code</a>； </p>
      <p>步骤二：调用<a href="../14/8dd77aeaee85f922db5f8aa6386d385e.html#.E6.9B.B4.E6.94.B9.E5.8D.A1.E5.88.B8.E4.BF.A1.E6.81.AF.E6.8E.A5.E5.8F.A3" class="external text" rel="nofollow">更改卡券信息接口</a>填入get_custom_code_mode字段； </p>
      <p>步骤三：调用<a href="../14/8dd77aeaee85f922db5f8aa6386d385e.html#.E4.BF.AE.E6.94.B9.E5.BA.93.E5.AD.98.E6.8E.A5.E5.8F.A3" class="external text" rel="nofollow">修改库存接口</a>将卡券库存quantity设置为与导入code数目相等的数字。 </p>
      <p><a href="#" class="image"><img alt="导入code2.png" src="../static/assets/3d26cfd79e109deafd47fcc700ad265c.png" width="947" height="219"></a> </p>
      <p><br> </p> 
      <h4> <span class="mw-headline" id=".E5.A1.AB.E5.85.A5.2F.E6.9B.B4.E6.96.B0.E5.AF.BC.E5.85.A5code.E5.BF.85.E9.9C.80.E5.AD.97.E6.AE.B5"><b>填入/更新导入code必需字段</b></span></h4> 
      <p><b>接口说明</b> </p>
      <p>自定义code的卡券仅支持API创建，创建时务必在base_info中加入以下字段(详情见接口文档CreateCard创建卡券接口)， 加入以下两个指定字段后，才可以调用code导入接口进行code导入 </p> 
      <table border="1" cellspacing="0" cellpadding="2" align="center" width="700px"> 
       <tbody>
        <tr> 
         <th style="width:200px">字段 </th> 
         <th style="width:200px">示例 </th> 
         <th>说明 </th>
        </tr> 
        <tr> 
         <td>base_info </td> 
         <td> </td>
        </tr> 
        <tr> 
         <td>get_custom_code_mode </td> 
         <td>GET_CUSTOM_CODE_MODE_DEPOSIT </td> 
         <td>填入该字段后，自定义code卡券方可进行导入code并投放的动作。 </td>
        </tr> 
        <tr> 
         <td>use_custom_code </td> 
         <td>true </td> 
         <td>将卡券设置为自定义code </td>
        </tr> 
       </tbody>
      </table> 
      <h4> <span class="mw-headline" id=".E5.AF.BC.E5.85.A5code.E6.8E.A5.E5.8F.A3"><b>导入code接口</b></span></h4> 
      <p>在自定义code卡券<font color="#FF0000">成功创建并且通过审核</font>后，必须将自定义code按照与发券方的约定数量调用导入code接口导入微信后台。 </p>
      <p><b>接口说明</b> </p>
      <p>开发者可调用该接口将自定义code导入微信卡券后台，由微信侧代理存储并下发code。 </p>
      <p>注： 1）单次调用接口传入code的数量上限为100个。 </p>
      <p>2）每一个 code 均不能为空串。 </p>
      <p>3）导入结束后系统会自动判断提供方设置库存与实际导入code的量是否一致。 </p>
      <p>4）导入失败支持重复导入，提示成功为止。 </p>
      <p><b>接口调用请求说明</b> </p> 
      <pre>http请求方式: POST
<a href="http://api.weixin.qq.com/card/code/deposit?access_token=ACCESS_TOKEN" class="external free" rel="nofollow">http://api.weixin.qq.com/card/code/deposit?access_token=ACCESS_TOKEN</a>
</pre> 
      <p><b>请求参数说明</b> </p> 
      <table border="1" cellspacing="0" cellpadding="2" align="center" width="700px"> 
       <tbody>
        <tr> 
         <th style="width:120px">参数 </th> 
         <th style="width:120px">是否必须 </th> 
         <th>说明 </th>
        </tr> 
        <tr> 
         <td> access_token </td> 
         <td> 是 </td> 
         <td> 调用接口凭证 </td>
        </tr> 
        <tr> 
         <td> buffer </td> 
         <td> 是 </td> 
         <td> 文件的数据流 </td>
        </tr> 
       </tbody>
      </table> 
      <p><b>请POST数据</b> </p>
      <p>数据示例 </p> 
      <pre>{
   "card_id": "pDF3iY0_dVjb_Pua96MMewA96qvA",
   "code": [
       "11111",
       "22222",
       "33333",
       "44444",
       "55555"
   ]
}
</pre> 
      <p><br> 字段说明： </p> 
      <table border="1" cellspacing="0" cellpadding="2" align="center" width="700px"> 
       <tbody>
        <tr> 
         <th style="width:200px">字段 </th> 
         <th>说明 </th> 
         <th>是否必填 </th>
        </tr> 
        <tr> 
         <td>cardid </td> 
         <td>需要进行导入code的卡券ID。 </td> 
         <td>是 </td>
        </tr> 
        <tr> 
         <td>code </td> 
         <td>需导入微信卡券后台的自定义code，上限为100个。 </td> 
         <td>是 </td>
        </tr> 
       </tbody>
      </table> 
      <p><b>返回数据说明</b> </p>
      <p>返回示例： </p> 
      <pre>{
  "errcode":0,
  "errmsg":"ok"
}
</pre> 
      <p>字段说明： </p> 
      <table border="1" cellspacing="0" cellpadding="2" align="center" width="700px"> 
       <tbody>
        <tr> 
         <th style="width:350px">字段 </th> 
         <th>说明 </th>
        </tr> 
        <tr> 
         <td>errcode </td> 
         <td>错误码，0为正常；40109：code数量超过100个 </td>
        </tr> 
        <tr> 
         <td>errmsg </td> 
         <td>错误信息。 </td>
        </tr> 
        <tr> 
         <td>succ_code </td> 
         <td>成功个数 </td>
        </tr> 
        <tr> 
         <td>duplicate_code </td> 
         <td>重复导入的code会自动被过滤。 </td>
        </tr> 
        <tr> 
         <td>fail_code </td> 
         <td>失败个数。 </td>
        </tr> 
       </tbody>
      </table> 
      <h4> <span class="mw-headline" id=".E6.9F.A5.E8.AF.A2.E5.AF.BC.E5.85.A5code.E6.95.B0.E7.9B.AE.E6.8E.A5.E5.8F.A3"><b>查询导入code数目接口</b></span></h4> 
      <p><b>接口说明</b> </p>
      <p>支持开发者调用该接口查询code导入微信后台成功的数目。 </p>
      <p><b>接口调用请求说明</b> </p> 
      <pre>http请求方式: POST
<a href="http://api.weixin.qq.com/card/code/getdepositcount?access_token=ACCESS_TOKEN" class="external free" rel="nofollow">http://api.weixin.qq.com/card/code/getdepositcount?access_token=ACCESS_TOKEN</a>
</pre> 
      <p><b>请求参数说明</b> </p> 
      <table border="1" cellspacing="0" cellpadding="2" align="center" width="700px"> 
       <tbody>
        <tr> 
         <th style="width:120px">参数 </th> 
         <th style="width:120px">是否必须 </th> 
         <th>说明 </th>
        </tr> 
        <tr> 
         <td> access_token </td> 
         <td> 是 </td> 
         <td> 调用接口凭证 </td>
        </tr> 
       </tbody>
      </table> 
      <p><b>请POST数据</b> </p>
      <p>数据示例 </p> 
      <pre>{
   "card_id"&nbsp;: " pDF3iY0_dVjb_Pua96MMewA96qvA "
}
</pre> 
      <p><br> 字段说明： </p> 
      <table border="1" cellspacing="0" cellpadding="2" align="center" width="700px"> 
       <tbody>
        <tr> 
         <th style="width:200px">字段 </th> 
         <th>说明 </th> 
         <th>是否必填 </th>
        </tr> 
        <tr> 
         <td>cardid </td> 
         <td>进行导入code的卡券ID。 </td> 
         <td>是 </td>
        </tr> 
       </tbody>
      </table> 
      <p><b>返回数据说明</b> </p>
      <p>返回示例： </p> 
      <pre>{
  "errcode":0,
  "errmsg":"ok"，
  "count":123
}
</pre> 
      <p><br> 字段说明： </p> 
      <table border="1" cellspacing="0" cellpadding="2" align="center" width="700px"> 
       <tbody>
        <tr> 
         <th style="width:350px">字段 </th> 
         <th>说明 </th>
        </tr> 
        <tr> 
         <td>errcode </td> 
         <td>错误码，0为正常。 </td>
        </tr> 
        <tr> 
         <td>errmsg </td> 
         <td>错误信息。 </td>
        </tr> 
        <tr> 
         <td>count </td> 
         <td>已经成功存入的code数目。 </td>
        </tr> 
       </tbody>
      </table> 
      <p><br> </p> 
      <h4> <span class="mw-headline" id=".E6.A0.B8.E6.9F.A5code.E6.8E.A5.E5.8F.A3"><b>核查code接口</b></span></h4> 
      <p>为了避免出现导入差错，强烈建议开发者在查询完code数目的时候核查code接口校验code导入微信后台的情况。 </p>
      <p><b>接口说明</b> </p>
      <p>支持开发者调用该接口查询code导入微信后台的情况。 </p>
      <p><b>接口调用请求说明</b> </p> 
      <pre>http请求方式: POST
<a href="http://api.weixin.qq.com/card/code/checkcode?access_token=ACCESS_TOKEN" class="external free" rel="nofollow">http://api.weixin.qq.com/card/code/checkcode?access_token=ACCESS_TOKEN</a>
</pre> 
      <p><b>请求参数说明</b> </p> 
      <table border="1" cellspacing="0" cellpadding="2" align="center" width="700px"> 
       <tbody>
        <tr> 
         <th style="width:120px">参数 </th> 
         <th style="width:120px">是否必须 </th> 
         <th>说明 </th>
        </tr> 
        <tr> 
         <td> access_token </td> 
         <td> 是 </td> 
         <td> 调用接口凭证 </td>
        </tr> 
       </tbody>
      </table> 
      <p><b>请POST数据</b> </p>
      <p>数据示例 </p> 
      <pre>{
   "card_id": "pDF3iY0_dVjb_Pua96MMewA96qvA",
   "code": [
       "11111",
       "22222",
       "33333",
       "44444",
       "55555"
   ]
}
</pre> 
      <p><br> 字段说明： </p> 
      <table border="1" cellspacing="0" cellpadding="2" align="center" width="700px"> 
       <tbody>
        <tr> 
         <th style="width:200px">字段 </th> 
         <th>说明 </th> 
         <th>是否必填 </th>
        </tr> 
        <tr> 
         <td>cardid </td> 
         <td>进行导入code的卡券ID。 </td> 
         <td>是 </td>
        </tr> 
        <tr> 
         <td>code </td> 
         <td>已经微信卡券后台的自定义code，上限为100个。 </td> 
         <td>是 </td>
        </tr> 
       </tbody>
      </table> 
      <p><b>返回数据说明</b> </p>
      <p>返回示例： </p> 
      <pre>{
  "errcode":0,
  "errmsg":"ok"
  "exist_code":["11111","22222","33333"],
  "not_exist_code":["44444","55555"]
}
</pre> 
      <p><br> 字段说明： </p> 
      <table border="1" cellspacing="0" cellpadding="2" align="center" width="700px"> 
       <tbody>
        <tr> 
         <th style="width:350px">字段 </th> 
         <th>说明 </th>
        </tr> 
        <tr> 
         <td>errcode </td> 
         <td>错误码，0为正常；40109：code数量超过100个 </td>
        </tr> 
        <tr> 
         <td>errmsg </td> 
         <td>错误信息。 </td>
        </tr> 
        <tr> 
         <td>exist_code </td> 
         <td>已经成功存入的code。 </td>
        </tr> 
        <tr> 
         <td>not_exist_code </td> 
         <td>没有存入的code。 </td>
        </tr> 
       </tbody>
      </table> 
      <h3> <span class="mw-headline" id=".E5.9B.BE.E6.96.87.E6.B6.88.E6.81.AF.E7.BE.A4.E5.8F.91.E5.8D.A1.E5.88.B8"><b>图文消息群发卡券</b></span></h3> 
      <p>支持开发者调用该接口获取卡券嵌入图文消息的标准格式代码，将返回代码填入<a href="../15/40b6865b893947b764e2de8e4a1fb55f.html#.E4.B8.8A.E4.BC.A0.E5.9B.BE.E6.96.87.E6.B6.88.E6.81.AF.E7.B4.A0.E6.9D.90.E3.80.90.E8.AE.A2.E9.98.85.E5.8F.B7.E4.B8.8E.E6.9C.8D.E5.8A.A1.E5.8F.B7.E8.AE.A4.E8.AF.81.E5.90.8E.E5.9D.87.E5.8F.AF.E7.94.A8.E3.80.91" class="external text" rel="nofollow">上传图文素材接口</a>中content字段，即可获取嵌入卡券的图文消息素材。 </p>
      <p>特别注意：目前该接口仅支持填入非自定义code的卡券,自定义code的卡券需先进行code导入后调用。 </p>
      <p><b>接口调用请求说明</b> </p> 
      <pre>http请求方式: POST
<a href="https://api.weixin.qq.com/card/mpnews/gethtml?access_token=TOKEN" class="external free" rel="nofollow">https://api.weixin.qq.com/card/mpnews/gethtml?access_token=TOKEN</a>
</pre> 
      <p><b>参数说明</b> </p> 
      <table border="1" cellspacing="0" cellpadding="2" align="center" width="700px"> 
       <tbody>
        <tr> 
         <th style="width:120px">参数 </th> 
         <th style="width:120px">是否必须 </th> 
         <th>说明 </th>
        </tr> 
        <tr> 
         <td> POST数据 </td> 
         <td> 是 </td> 
         <td> Json数据 </td>
        </tr> 
        <tr> 
         <td> access_token </td> 
         <td> 是 </td> 
         <td> 调用接口凭证 </td>
        </tr> 
       </tbody>
      </table> 
      <p><b>POST数据</b> </p> 
      <pre>{
  "card_id":"p1Pj9jr90_SQRaVqYI239Ka1erkI"
}
</pre> 
      <table border="1" cellspacing="0" cellpadding="4" align="center" width="700px"> 
       <tbody>
        <tr> 
         <th style="width:100px">参数名 </th> 
         <th>必填 </th> 
         <th>类型 </th> 
         <th>示例值 </th> 
         <th>描述 </th>
        </tr> 
        <tr> 
         <td> cardid </td> 
         <td> 否 </td> 
         <td> string(32) </td> 
         <td> pFS7Fjg8kV1IdDz01r4SQwMkuCKc </td> 
         <td> 卡券ID。 </td>
        </tr> 
       </tbody>
      </table> 
      <p><b>返回数据</b> </p>
      <p>数据示例： </p> 
      <pre> {
"errcode":0,
"errmsg":"ok",
"content":"&lt;iframeclass=\"res_iframecard_iframejs_editor_card\"data-src=\"http: \/\/mp.weixin.qq.com\/bizmall\/appmsgcard?action=show&amp;biz=MjM5OTAwODk4MA%3D%3D&amp;cardid=p1Pj9jnXTLf2nF7lccYScFUYqJ0&amp;wechat_card_js=1#wechat_redirect\"&gt;"
}
</pre> 
      <table border="1" cellspacing="0" cellpadding="7" align="center" width="700px"> 
       <tbody>
        <tr> 
         <th style="width:350px">参数名 </th> 
         <th>描述 </th>
        </tr> 
        <tr> 
         <td> errcode </td> 
         <td> 错误码 </td>
        </tr> 
        <tr> 
         <td> errmsg </td> 
         <td>错误信息 </td>
        </tr> 
        <tr> 
         <td> content </td> 
         <td> 返回一段html代码，可以直接嵌入到图文消息的正文里。即可以把这段代码嵌入到<a href="../15/40b6865b893947b764e2de8e4a1fb55f.html#.E4.B8.8A.E4.BC.A0.E5.9B.BE.E6.96.87.E6.B6.88.E6.81.AF.E7.B4.A0.E6.9D.90.E3.80.90.E8.AE.A2.E9.98.85.E5.8F.B7.E4.B8.8E.E6.9C.8D.E5.8A.A1.E5.8F.B7.E8.AE.A4.E8.AF.81.E5.90.8E.E5.9D.87.E5.8F.AF.E7.94.A8.E3.80.91" class="external text" rel="nofollow">上传图文消息素材接口</a>中的content字段里。 </td>
        </tr> 
       </tbody>
      </table> 
      <h3> <span class="mw-headline" id=".E6.A0.B9.E6.8D.AE.E5.88.86.E7.BB.84.E7.BE.A4.E5.8F.91.E5.8D.A1.E5.88.B8.E6.B6.88.E6.81.AF"><b>根据分组群发卡券消息</b></span></h3> 
      <p>支持调用该接口向指定分组的用户群发卡券消息。详情见<a href="../15/40b6865b893947b764e2de8e4a1fb55f.html#.E6.A0.B9.E6.8D.AE.E5.88.86.E7.BB.84.E8.BF.9B.E8.A1.8C.E7.BE.A4.E5.8F.91.E3.80.90.E8.AE.A2.E9.98.85.E5.8F.B7.E4.B8.8E.E6.9C.8D.E5.8A.A1.E5.8F.B7.E8.AE.A4.E8.AF.81.E5.90.8E.E5.9D.87.E5.8F.AF.E7.94.A8.E3.80.91" class="external text" rel="nofollow">根据分组进行群发接口</a> </p>
      <p><font color="#FF0000"> 目前该接口仅支持填入非自定义code的卡券,自定义code的卡券需先进行code导入后调用。 </font> </p> 
      <h3> <span class="mw-headline" id=".E6.A0.B9.E6.8D.AEOpenID.E5.88.97.E8.A1.A8.E7.BE.A4.E5.8F.91.E5.8D.A1.E5.88.B8.E6.B6.88.E6.81.AF"><b>根据OpenID列表群发卡券消息</b></span></h3> 
      <p>支持根据OpenID群发原生卡券。订阅号不可用，服务号认证后具备接口权限。详情见<a href="../15/40b6865b893947b764e2de8e4a1fb55f.html#.E6.A0.B9.E6.8D.AEOpenID.E5.88.97.E8.A1.A8.E7.BE.A4.E5.8F.91.E3.80.90.E8.AE.A2.E9.98.85.E5.8F.B7.E4.B8.8D.E5.8F.AF.E7.94.A8.EF.BC.8C.E6.9C.8D.E5.8A.A1.E5.8F.B7.E8.AE.A4.E8.AF.81.E5.90.8E.E5.8F.AF.E7.94.A8.E3.80.91" class="external text" rel="nofollow">根据OpenID列表群发接口</a> </p>
      <p><font color="#FF0000"> 目前该接口仅支持填入非自定义code的卡券,自定义code的卡券需先进行code导入后调用。 </font> </p> 
      <h3> <span class="mw-headline" id=".E5.AE.A2.E6.9C.8D.E6.B6.88.E6.81.AF.E4.B8.8B.E5.8F.91.E5.8D.A1.E5.88.B8"><b>客服消息下发卡券</b></span></h3> 
      <p>支持开发者调用该接口下发卡券。订阅号不可用，服务号认证后可用。详情见<a href="../11/c88c270ae8935291626538f9c64bd123.html#.E5.AE.A2.E6.9C.8D.E6.8E.A5.E5.8F.A3-.E5.8F.91.E6.B6.88.E6.81.AF" class="external text" rel="nofollow">客服接口-发消息</a> </p>
      <p><font color="#FF0000"> 目前该接口仅支持填入非自定义code的卡券,自定义code的卡券需先进行code导入后调用。 </font> </p> 
      <h3> <span class="mw-headline" id=".E9.A2.84.E8.A7.88.E6.8E.A5.E5.8F.A3"><b>预览接口</b></span></h3> 
      <p>支持开发者调用该接口下发卡券。订阅号不可用，服务号认证后可用。详情见<a href="../15/40b6865b893947b764e2de8e4a1fb55f.html#.E9.A2.84.E8.A7.88.E6.8E.A5.E5.8F.A3.E3.80.90.E8.AE.A2.E9.98.85.E5.8F.B7.E4.B8.8E.E6.9C.8D.E5.8A.A1.E5.8F.B7.E8.AE.A4.E8.AF.81.E5.90.8E.E5.9D.87.E5.8F.AF.E7.94.A8.E3.80.91" class="external text" rel="nofollow">预览接口</a> </p> 
      <h2> <span class="mw-headline" id=".E6.8A.95.E6.94.BE.E6.B8.A0.E9.81.93.E6.95.B0.E6.8D.AE.E7.BB.9F.E8.AE.A1"><b>投放渠道数据统计</b></span></h2> 
      <p>为方便开发者统计各渠道的卡券投放数据，新增字段outer_id。将不同设值的outer_id填入card_ext的json结构中，当用户领取卡券时会将相应设值的outer_id带入<a href="../16/28b34ee91675a04cb24853768debded4.html#.E9.A2.86.E5.8F.96.E4.BA.8B.E4.BB.B6.E6.8E.A8.E9.80.81" class="external text" rel="nofollow">领取事件</a>中，推送至开发者服务器。 </p>
      <p>示例： 在二维码投放方式中设置outer_id为1 </p> 
      <pre>{
"action_name": "QR_CARD", 
"action_info": {
"card": {
"card_id": "pFS7Fjg8kV1IdDz01r4SQwMkuCKc", 
"code": "198374613512",
"openid": "oFS7Fjl0WsZ9AMZqrI80nbIq8xrA",
"expire_seconds": "1800"，
"is_unique_code": false ,
"outer_id"&nbsp;: 1
  }
 }
}
</pre> 
      <p><br> 领取事件XML文件 </p> 
      <pre>&lt;xml&gt; &lt;ToUserName&gt;&lt;![CDATA[toUser]]&gt;&lt;/ToUserName&gt; 
&lt;FromUserName&gt;&lt;![CDATA[FromUser]]&gt;&lt;/FromUserName&gt; 
&lt;FriendUserName&gt;&lt;![CDATA[FriendUser]]&gt;&lt;/FriendUserName&gt; 
&lt;CreateTime&gt;123456789&lt;/CreateTime&gt; 
&lt;MsgType&gt;&lt;![CDATA[event]]&gt;&lt;/MsgType&gt; 
&lt;Event&gt;&lt;![CDATA[user_get_card]]&gt;&lt;/Event&gt; 
&lt;CardId&gt;&lt;![CDATA[cardid]]&gt;&lt;/CardId&gt; 
&lt;IsGiveByFriend&gt;1&lt;/IsGiveByFriend&gt;
&lt;UserCardCode&gt;&lt;![CDATA[12312312]]&gt;&lt;/UserCardCode&gt;
&lt;OuterId&gt;1&lt;/OuterId&gt;
&lt;/xml&gt;
</pre> 
      <h2> <span class="mw-headline" id=".E8.AE.BE.E7.BD.AE.E6.B5.8B.E8.AF.95.E7.99.BD.E5.90.8D.E5.8D.95"><b>设置测试白名单</b></span></h2> 
      <p><b>接口说明</b> </p>
      <p>由于卡券有审核要求，为方便公众号调试，可以设置一些测试帐号，这些帐号可领取未通过审核的卡券，体验整个流程。 </p>
      <p><b>开发者注意事项</b> </p>
      <p>1.同时支持“openid”、“username”两种字段设置白名单，总数上限为10个。 </p>
      <p>2.设置测试白名单接口为全量设置，即测试名单发生变化时需调用该接口重新传入所有测试人员的ID. </p>
      <p>3.白名单用户领取该卡券时将无视卡券失效状态，请开发者注意。 </p>
      <p><b>接口调用请求说明</b> </p> 
      <pre>http请求方式: POST
<a href="https://api.weixin.qq.com/card/testwhitelist/set?access_token=TOKEN" class="external free" rel="nofollow">https://api.weixin.qq.com/card/testwhitelist/set?access_token=TOKEN</a>
</pre> 
      <p><b>参数说明</b> </p> 
      <table border="1" cellspacing="0" cellpadding="2" align="center" width="700px"> 
       <tbody>
        <tr> 
         <th style="width:120px">参数 </th> 
         <th style="width:120px">是否必须 </th> 
         <th>说明 </th>
        </tr> 
        <tr> 
         <td> access_token </td> 
         <td> 是 </td> 
         <td> 调用接口凭证 </td>
        </tr> 
        <tr> 
         <td> POST数据 </td> 
         <td> 是 </td> 
         <td> Json数据 </td>
        </tr> 
       </tbody>
      </table> 
      <pre>{
  "openid": [
      "o1Pj9jmZvwSyyyyyyBa4aULW2mA", 
      "o1Pj9jmZvxxxxxxxxxULW2mA"
               ],
  "username": [
      "afdvvf",
      "abcd"
                ]
 }

</pre> 
      <table border="1" cellspacing="0" cellpadding="2" align="center" width="700px"> 
       <tbody>
        <tr> 
         <th style="width:100px">参数名 </th> 
         <th>必填 </th> 
         <th>类型 </th> 
         <th>示例值 </th> 
         <th>描述 </th>
        </tr> 
        <tr> 
         <td>openid </td> 
         <td>否 </td> 
         <td>string(20) </td> 
         <td>o1Pj9jmZvwSyyyyyyBa4aULW2mA </td> 
         <td>测试的openid列表。 </td>
        </tr> 
        <tr> 
         <td>username </td> 
         <td>否 </td> 
         <td>string（32） </td> 
         <td>eddy </td> 
         <td>测试的微信号列表。 </td>
        </tr> 
       </tbody>
      </table> 
      <p><b>返回说明</b> </p>
      <p>数据示例： </p> 
      <pre>{
   "errcode":0,
   "errmsg":"ok"
}
</pre> 
      <table border="1" cellspacing="0" cellpadding="2" align="center" width="700px"> 
       <tbody>
        <tr> 
         <th style="width:350px">参数名 </th> 
         <th>描述 </th>
        </tr> 
        <tr> 
         <td> errcode </td> 
         <td> 错误码，0为正常。 </td>
        </tr> 
        <tr> 
         <td> errmsg </td> 
         <td> 错误信息。 </td>
        </tr> 
       </tbody>
      </table> 
      <!-- 
NewPP limit report
Preprocessor node count: 78/1000000
Post-expand include size: 0/2097152 bytes
Template argument size: 0/2097152 bytes
Expensive parser function count: 0/100
--> 
      <div class="printfooter">
        取自“
       <a href="../5/f942979ef2f0d313d4d36e3a26766a3d.html">../5/f942979ef2f0d313d4d36e3a26766a3d.html</a>”
      </div> 
      <!-- /bodytext --> 
      <!-- catlinks --> 
      <div id="catlinks" class="catlinks catlinks-allhidden"></div> 
      <!-- /catlinks --> 
      <div class="visualClear"></div> 
     </div> 
     <!-- /bodyContent --> 
    </div> 
    <!-- /content --> 
   </div> 
  </div> 
  <!-- footer --> 
  <div class="foot" id="footer"> 
   <ul class="links ft" id="footer-places"> 
    <li class="links_item no_extra" id="footer-about"><a target="_blank" href="http://www.tencent.com/zh-cn/index.shtml">关于腾讯</a></li> 
    <li class="links_item" id="footer-policy"> <a target="_blank" href="#">服务协议</a></li> 
    <li class="links_item" id="footer-contactus"><a target="_blank" href="http://kf.qq.com/special_auto/weixin.html">客服中心</a></li> 
    <li class="links_item" id="footer-contactus"><a href="http://crm2.qq.com/page/portalpage/wpa.php?uin=40012345&amp;f=1&amp;ty=1&amp;ap=000011:400792:|f:Ggzpt1" target="_blank">在线客服</a></li> 
   </ul> 
   <ul id="footer-icons" class="noprint"> 
    <li id="footer-poweredbyico"> <a href="http://www.mediawiki.org/"><img src="../static/assets/1360f2593ddc8c336d455df43678bb00.png" alt="Powered by MediaWiki" width="88" height="31"></a> </li> 
   </ul> 
   <p class="copyright">Copyright&nbsp;© 2012-2016 Tencent. All Rights Reserved.</p> 
  </div> 
  <!-- /footer --> 
  <script src="../static/8de4f51dbc81a02504e69db45b414107.css"></script> 
  <script>if ( window.mediaWiki ) {
	mediaWiki.config.set({"wgCanonicalNamespace": "", "wgCanonicalSpecialPageName": false, "wgNamespaceNumber": 0, "wgPageName": "投放卡券", "wgTitle": "投放卡券", "wgAction": "view", "wgArticleId": 173, "wgIsArticle": true, "wgUserName": null, "wgUserGroups": ["*"], "wgCurRevisionId": 3484, "wgCategories": [], "wgBreakFrames": false, "wgRestrictionEdit": [], "wgRestrictionMove": []});
}
</script> 
  <script>if ( window.mediaWiki ) {
	mediaWiki.loader.load(["mediawiki.util", "mediawiki.legacy.wikibits", "mediawiki.legacy.ajax"]);
	mediaWiki.loader.go();
}
</script> 
  <script>if ( window.mediaWiki ) {
	mediaWiki.user.options.set({"ccmeonemails":0,"cols":80,"contextchars":50,"contextlines":5,"date":"default","diffonly":0,"disablemail":0,"disablesuggest":0,"editfont":"default","editondblclick":0,"editsection":1,"editsectiononrightclick":0,"enotifminoredits":0,"enotifrevealaddr":0,"enotifusertalkpages":1,"enotifwatchlistpages":0,"extendwatchlist":0,"externaldiff":0,"externaleditor":0,"fancysig":0,"forceeditsummary":0,"gender":"unknown","hideminor":0,"hidepatrolled":0,"highlightbroken":1,"imagesize":2,"justify":0,"math":1,"minordefault":0,"newpageshidepatrolled":0,"nocache":0,"noconvertlink":0,"norollbackdiff":0,"numberheadings":0,"previewonfirst":0,"previewontop":1,"quickbar":1,"rcdays":7,"rclimit":50,"rememberpassword":0,"rows":25,"searchlimit":20,"showhiddencats":0,"showjumplinks":1,"shownumberswatching":1,"showtoc":1,"showtoolbar":1,"skin":"vector","stubthreshold":0,"thumbsize":2,"underline":2,"uselivepreview":0,"usenewrc":0,"watchcreations":0,"watchdefault":0,"watchdeletion":0,
	"watchlistdays":3,"watchlisthideanons":0,"watchlisthidebots":0,"watchlisthideliu":0,"watchlisthideminor":0,"watchlisthideown":0,"watchlisthidepatrolled":0,"watchmoves":0,"wllimit":250,"variant":"zh-cn","language":"zh-cn","searchNs0":true,"searchNs1":false,"searchNs2":false,"searchNs3":false,"searchNs4":false,"searchNs5":false,"searchNs6":false,"searchNs7":false,"searchNs8":false,"searchNs9":false,"searchNs10":false,"searchNs11":false,"searchNs12":false,"searchNs13":false,"searchNs14":false,"searchNs15":false});;mediaWiki.loader.state({"user.options":"ready"});
}
</script> 
  <!-- fixalpha --> 
  <script type="text/javascript"> if ( window.isMSIE55 ) fixalpha(); </script> 
  <!-- /fixalpha --> 
  <!-- Served in 0.183 secs. --> 
  <script type="text/javascript">
		// @cunjinli
		setTimeout(function() {
			$("#mw-panel .portal .body li a").each(function() {
				var href = $(this).attr("href"),
				    idx = href.lastIndexOf("/");
				if (!/\.html$/.test(href)) return;

				if (idx>=0) href = href.substr(idx+1);
				var r = new RegExp(href+"$");
				if (r.test(location.href)) {
				    $(this).closest(".portal").find("h5").click();
				    return false;
				}
			});
		}, 100);
		</script>   
  <!-- Welcome to ask gy-team -->
  <!-- so -->
 </body>
</html>